import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

import index from '../components/tabbar/index.vue'
import user from '../components/tabbar/user.vue'
import search from '../components/tabbar/search.vue'
import shopcar from '../components/tabbar/shopcar.vue'


export default new Router({
  routes: [{
      path: '/',
      redirect: '/index'
    }, {
      path: '/index',
      component: index
    },
    {
      path: '/user',
      component: user
    },
    {
      path: '/search',
      component: search
    }, {
      path: '/shopcar',
      component: shopcar
    }
  ],
  linkActiveClass: 'mui-active' //更改默认路由的类变成高亮的类，实现点击高亮
})
